<%@page pageEncoding="UTF-8" contentType="text/html;charset=utf-8" errorPage="/commons/error.jsp"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang='zh-CN' xml:lang='zh-CN' xmlns='http://www.w3.org/1999/xhtml'>
<head>
<title>图片</title>
<style type="text/css">
table{font-size: 12px;}
</style>
</head>
<body>
	这里做图片上传预览测试
	<form:form  id="form-image" class="form-inline" action="${ctx}/admin/image/upload" method="post" enctype="multipart/form-data">
			<input name="imgFile" id="imgFile" type="file" />
			<button type="submit" class="btn btn-primary">上传</button>
	</form:form>
	
<!-- 
	<form action="${ctx}/admin/image/upload" method="post" enctype="multipart/form-data">  
      <input name="imgFile" id="imgFile" type="file" />
    </form> 
 -->
 
<script type="text/javascript" src="${ctx}/scripts/lottery.js"></script>
<script type="text/javascript">
	$(document).ready(function(){
		$("#nav_image").addClass("active");
	})
</script>
</body>
</html>